package root;

import java.util.PriorityQueue;

public class Parser {
  PriorityQueue<SentenceInterpretation> queue =
      new PriorityQueue<>(10, new ParsingOrderComparator());

  void parse(String[] words) {
    queue.add(new SentenceInterpretation());
    //root.WordSequence sequence = new root.WordSequence(words);
    while (!queue.isEmpty()) {
      SentenceInterpretation interpretation = queue.poll();
      for (POSWord posWord : GetPOSes(words[interpretation.sentenceWord])) {
        interpretation.addWord(posWord);
      }
    }
  }

  private POSWord[] GetPOSes(String word) {
    return null;
  }
}
